<meta charset="utf-8">
#{extends 'main.html' /} #{set title:'Home' /}

<div class="container">
	<div class="row">
		<div class="span6 offset3">
			<form enctype="multipart/form-data" method="POST" action="@{Section.save()}" class="form-vertical">
				<fieldset>
					<div class="control-group">
						<div class="controls docs-input-sizes">
							<input type="hidden" name="section.id" value="${section.id}" />
							<input type="hidden" name="establishment.id" value="${establishmentId}" />
							<input type="text" class="span6" placeholder="Name" name="section.name" value="${section.name}">
						</div>
					</div>
					<div class="form-actions">
						<button type="submit" class="btn btn-primary">Save changes</button>
						<span onclick="location.href='@{Section.list(establishmentId)}'" class="btn">Cancel</span>
					</div>
				</fieldset>
			</form>
		</div>
	</div>
	<!--/row-->
</div>
<!--/.fluid-container-->